export const constRoutes = [
  {
    path: '/login',
    meta: { title: '登录', hidden: true ,needLogin:false},
    component: () => import('@/views/login'),
  },
  {
    path: '/register',
    meta: { title: '注册', hidden: true ,needLogin:false},
    component: () => import('@/views/register'),
  },
  // {
  //   path: '/resetpsd',
  //   meta: { title: '修改密码', hidden: true,needLogin:false },
  //   component: () => import('@/views/resetPassword'),
  // },
  {
    path: '/',
    redirect: '/welcome',
    meta: { title: '首页', hidden: true,needLogin:false },
    component: () => import('@/views/welcome'),
  },
  {
    path: '/welcome',
    meta: { title: '首页', icon: 's-home', hidden: true,needLogin:false },
    component: () => import('@/views/welcome'),
  },
];

export const routes = [
  {
    path: '/communicate',
    meta: { title: '在线沟通', icon: 'chat-line-round', hidden: false,needLogin:true },
    component: () => import('@/views/appoint/communicate'),
  },
  {
    path: '/setting',
    meta: { title: '设置', icon: 'setting', hidden: false,needLogin:true },
    component: () => import('@/views/setting'),
    children: [
      {
        path: '/setting/role',
        meta: { title: '角色管理', icon: 'user-solid', hidden: false,needLogin:true },
        component: () => import('@/views/setting/role'),
      },
      {
        path: '/setting/user',
        meta: { title: '用户管理', icon: 'user', hidden: false ,needLogin:true},
        component: () => import('@/views/setting/user'),
      },
      {
        path: '/setting/menu',
        meta: { title: '菜单管理', icon: 'menu', hidden: false,needLogin:true },
        component: () => import('@/views/setting/menu'),
      },
    ],
  },
];
